package com.laowang.project.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.laowang.framework.aspectj.lang.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * 评论回复对象 my_life_circle_reply
 *
 * @author laowang
 * @date 2023-04-27
 */
@NoArgsConstructor
@Data
public class MyLifeCircleReply implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    @ApiModelProperty(value = "${comment}", required = false)
    private Integer id;

    /**
     * 评论id
     */
    @Excel(name = "评论id")
    @NotNull(message = "评论id 不能为空")
    @ApiModelProperty(value = "评论id", required = false)
    private Integer commentId;

    /**
     * 生活圈id
     */
    @Excel(name = "生活圈id")
    @ApiModelProperty(value = "生活圈id", required = false)
    @NotNull(message = "生活圈id 不能为空")
    private Integer circleLifeId;

    /**
     * 内容
     */
    @Excel(name = "内容")
    @ApiModelProperty(value = "内容", required = false)
    private String content;

    /**
     * $column.columnComment
     */
    @Excel(name = "内容")
    @ApiModelProperty(value = "回复人", required = false)
    private Integer userId;

    /**
     * $column.columnComment
     */
    @Excel(name = "内容")
    @ApiModelProperty(value = "被回复人", required = false)
    @NotNull(message = "被回复人不能为空")
    private Integer toUserId;

    /**
     * $column.columnComment
     */
    @Excel(name = "内容")
    @ApiModelProperty(value = "回复人昵称", required = false)
    private String fromNickname;

    /**
     * $column.columnComment
     */
    @Excel(name = "内容")
    @ApiModelProperty(value = "被回复人昵称", required = false)
    private String toNickname;

    /**
     * $column.columnComment
     */
    @Excel(name = "内容")
    @ApiModelProperty(value = "回复人头像", required = false)
    private String fromAvatar;

    /**
     * $column.columnComment
     */
    @Excel(name = "内容")
    @ApiModelProperty(value = "被回复人头像", required = false)
    private String toAvatar;

    /**
     * 点赞数量
     */
    @Excel(name = "点赞数量")
    @ApiModelProperty(value = "点赞数量", required = false)
    private Integer agree;

    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    private Date createTime;
}
